package com.ldzl.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ldzl.pojo.CkItemRecptLine;
import com.ldzl.service.CkItemRecptLineService;
import com.ldzl.mapper.CkItemRecptLineMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 风止
* @description 针对表【ck_item_recpt_line(物料入库单行表)】的数据库操作Service实现
* @createDate 2025-07-18 16:44:31
*/
@Service
public class CkItemRecptLineServiceImpl extends ServiceImpl<CkItemRecptLineMapper, CkItemRecptLine>
    implements CkItemRecptLineService{

    /**
     * 查询采购入库单行
     * @param recpt_id
     * @return
     */
    @Override
    public List<CkItemRecptLine> selectRecpt_id(Long recpt_id) {
        return super.baseMapper.selectRecpt_id(recpt_id);
    }

    /**
     * 查询采购入库单行 修改订单时回显入库商品
     * @param recpt_id
     * @return
     */
    @Override
    public List<CkItemRecptLine> selectRecptLine_feedback(Long recpt_id) {
        List<CkItemRecptLine> list = super.baseMapper.selectRecptLine_feedback(recpt_id);
        return list;
    }

    /**
     * 删除入库商品行
     * @param line_id
     * @return
     */
    @Override
    public boolean updateIs_delete(Long line_id) {
        return super.baseMapper.updateIs_delete(line_id) > 0;
    }

    /**
     * 根据入库单id删除入库商品行
     * @param recpt_id
     * @return
     */
    @Override
    public boolean delete_recpt_id(Long recpt_id) {
        return super.baseMapper.delete_recpt_id(recpt_id) > 0;
    }

}




